package com.xc.freeapp.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.wordnik.swagger.annotations.ApiModelProperty;

public class Regpatient {
    private Integer id;
    @NotEmpty(message="就诊人姓名不能为空")
    @ApiModelProperty(value="就诊人姓名")
    private String patientname;
    @NotNull(message="就诊人姓名不能为空")
    @ApiModelProperty(value="就诊人性别")
    private Integer patientsex;
    @ApiModelProperty(value="就诊人证件类型")
    private String patientidentitytype;
    @ApiModelProperty(value="就诊人身份证号")
    private String patientdentityno;
    @Pattern(regexp="^[1][3,4,5,8,7][0-9]{9}$",message="手机号码错误")
    @ApiModelProperty(value="就诊人手机号")
    private String telphone;
    @ApiModelProperty(value="备注")
    private String remark;

    private Integer createby;

    private Date createtime;

    private Integer updateby;

    private Date updatetime;

    private String delflag;
    
    private String isdefault;
    
    public String getIsdefault() {
		return isdefault;
	}

	public void setIsdefault(String isdefault) {
		this.isdefault = isdefault;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPatientname() {
        return patientname;
    }

    public void setPatientname(String patientname) {
        this.patientname = patientname;
    }

    public Integer getPatientsex() {
        return patientsex;
    }

    public void setPatientsex(Integer patientsex) {
        this.patientsex = patientsex;
    }

    public String getPatientidentitytype() {
        return patientidentitytype;
    }

    public void setPatientidentitytype(String patientidentitytype) {
        this.patientidentitytype = patientidentitytype == null ? null : patientidentitytype.trim();
    }

    public String getPatientdentityno() {
        return patientdentityno;
    }

    public void setPatientdentityno(String patientdentityno) {
        this.patientdentityno = patientdentityno == null ? null : patientdentityno.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getUpdateby() {
        return updateby;
    }

    public void setUpdateby(Integer updateby) {
        this.updateby = updateby;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getDelflag() {
        return delflag;
    }

    public void setDelflag(String delflag) {
        this.delflag = delflag == null ? null : delflag.trim();
    }

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}
}